package com.cnhis.onehis;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
 
import com.cnhis.cloudhealth.clinical.clidoctor.acolsetting.dao.IcolSettingDao;
import com.cnhis.cloudhealth.clinical.clidoctor.acolsetting.service.IcolSetting;
import com.cnhis.cloudhealth.clinical.clidoctor.clideladvice.service.ICliDelAdvice;
import com.cnhis.cloudhealth.clinical.util.SpringUtilV3_prjcli;

@Component
public class colset_test {
	@Reference
	private IcolSetting IcolSetting1;
	
	
	public IcolSetting getIcolSetting1() {
		return IcolSetting1;
	}


	public void setIcolSetting1(IcolSetting icolSetting1) {
		IcolSetting1 = icolSetting1;
	}


	public static void main(String[] args) {  //C:\0wkspc\clinical\dubbo_test\applicationContext-datasource.xml
		SpringUtilV3_prjcli.cfgFileDir="C:\\0wkspc\\clinical\\dubbo_test";			 
			SpringUtilV3_prjcli.setLocations("applicationContext-datasource.xml");
			colset_test d=	(colset_test) SpringUtilV3_prjcli.getBean( colset_test.class);
			d.IcolSetting1.setSetting("col_show_setting", "{'c1':'show','c2','hide'}");
            System.out.println(d.getIcolSetting1().getSetting_str("col_show_setting"));
	}

}
